package com.gosuncn.pojo;

import org.springframework.web.multipart.MultipartFile;

import java.util.Arrays;
import java.util.Date;

public class JobBean {
	/**
	 * 文件数组
	 */
	private MultipartFile[] file;

	/**
	 * 任务id（文件名）
	 */
	private String id;
	/**
	 * 任务名称
	 */
	private String name;
	/**
	 * 任务状态 0:启动,1:停止
	 */
	private String status;
	/**
	 *
	 */
	private String isUpdate;
	/**
	 *
	 */
	private String rulesId;

	private String code;
	/**
	 * 摆渡类型
	 * # DATA_TO_FTP 数据库数据发送到FTP
	 * # DATA_FILE_TO_FTP 数据库文件发送到FTP
	 * # FTP_TO_DATA FTP图片读取到数据库
	 * # FTP_FILE_TO_DATA FTP图片读取到数据库
	 */
	private String ferryType;
	private String isParams;
	private String params;
	/**
	 *表名
	 */
	private String tableName;

	/**
	 * 图片地址的数组，多个用逗号“，”分开
	 */
	private String urls ;

	/**
	 * 存储策略 0 gofast 1:本地
	 */
	private String storage ;

	private Date runDate;

	private long updateTime;

	private String date;

	private String scopeField;

	private String rulesType;

	private String delay;

	private String cron;

	private String sql;

	/**
	 * 查找分页大小
	 */
	private String page = "0" ;

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public String getCron() {
		return cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}

	public String getDelay() {
		return delay;
	}

	public void setDelay(String delay) {
		this.delay = delay;
	}

	public String getRulesType() {
		return rulesType;
	}

	public void setRulesType(String rulesType) {
		this.rulesType = rulesType;
	}

	public String getScopeField() {
		return scopeField;
	}

	public void setScopeField(String scopeField) {
		this.scopeField = scopeField;
	}

	public String getStorage() {
		return storage;
	}

	public void setStorage(String storage) {
		this.storage = storage;
	}

	public String getUrls() {
		return urls;
	}

	public void setUrls(String urls) {
		this.urls = urls;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return status;
	}

	public String getIsUpdate() {
		return isUpdate;
	}

	public void setIsUpdate(String isUpdate) {
		this.isUpdate = isUpdate;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRulesId() {
		return rulesId;
	}

	public void setRulesId(String rulesId) {
		this.rulesId = rulesId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getFerryType() {
		return ferryType;
	}

	public void setFerryType(String ferryType) {
		this.ferryType = ferryType;
	}

	public String getIsParams() {
		return isParams;
	}

	public void setIsParams(String isParams) {
		this.isParams = isParams;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public Date getRunDate() {
		return runDate;
	}

	public void setRunDate(Date runDate) {
		this.runDate = runDate;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public MultipartFile[] getFile() {
		return file;
	}

	public void setFile(MultipartFile[] file) {
		this.file = file;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	@Override
	public String toString() {
		return "JobBean{" +
				"file=" + Arrays.toString(file) +
				", id='" + id + '\'' +
				", name='" + name + '\'' +
				", status='" + status + '\'' +
				", isUpdate='" + isUpdate + '\'' +
				", rulesId='" + rulesId + '\'' +
				", code='" + code + '\'' +
				", ferryType='" + ferryType + '\'' +
				", isParams='" + isParams + '\'' +
				", params='" + params + '\'' +
				", tableName='" + tableName + '\'' +
				", urls='" + urls + '\'' +
				", storage='" + storage + '\'' +
				", runDate=" + runDate +
				", updateTime=" + updateTime +
				", date='" + date + '\'' +
				", scopeField='" + scopeField + '\'' +
				", rulesType='" + rulesType + '\'' +
				", delay='" + delay + '\'' +
				", cron='" + cron + '\'' +
				", sql='" + sql + '\'' +
				'}';
	}
}
